package com.wangbo.springmvc002.daoimpl;


import java.util.List;

import org.springframework.stereotype.Repository;

import com.wangbo.springmvc002.dao.NameDao;
import com.wangbo.springmvc002.entity.Name;
//@Repository
public class NameDaoImpl extends BaseDaoImpl<Name,Integer> implements NameDao{

	public Name getName() {
		
		System.out.println("--------com.wangbo.springmvc002.daoimpl--getName--");
		return this.get(1);
	}
	public List<Name> getAllName(){
		String hql = "from Name";
		List<Name> ln =  this.find(hql);
		for(Name n : ln){
			System.out.println("----------name=="+n.getName()+"--------id=="+n.getId());
		}
		return null;
	}

}
